<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script language="javascript" type="text/javascript" src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/jquery.js"></script>
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/frame.js" language="javascript" type="text/javascript"></script>
<link href="http://www.ucmaim.com/Public/Ucmaim/Admin/css/style.css" rel="stylesheet" type="text/css" />

<!--[if IE 6]>
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/DD_belatedPNG.js" language="javascript" type="text/javascript"></script>
<script>
  DD_belatedPNG.fix('.nav ul li a,.top_link ul li,background');   /* string argument can be any CSS selector */
</script>
<![endif]-->
</head>
<body class="showmenu">
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/Admin/common.js" type="text/javascript"></script>
<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
    <tr>
        <td height="31"><div class="titlebt">幻灯片列表</div></td>
    </tr>
</table>

<div class="main">
    <div class="operate">
        <div class="left">
            <input type="button" onclick="window.open('<?php echo U('Admin/Config/Pic', 'do=add');?>','main')" target="main" class="btn_blue" value="添加">
        </div>
        <div class="left_pad">
        </div>
    </div>
    <div class="list">
        <form action="<?php echo U('Admin/Config/Pic', 'do=sort');?>" method="post" id="form_do" name="form_do">
            <table width="100%">
                <tr>
                    <th>编号</th>
                    <th>标题</th>
                    <th>链接地址</th>
                    <th>排序</th>
                    <th>操作</th>
                </tr>

                <?php if(empty($vlist)): ?><tr><td colspan="9">本区域暂无数据显示...</td></tr>
                    <?php else: ?>
                    <?php if(is_array($vlist)): $i = 0; $__LIST__ = $vlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
                            <td><?php echo ($v["ad_id"]); ?></td>
                            <td class="aleft"><?php echo ($v["ad_title"]); ?></td>
                            <td><?php echo ($v["ad_url"]); ?></td>
                            <td><?php echo ($v["ad_sort"]); ?></td>
                            <td>
                                <a href="<?php echo U('Admin/Config/Pic', 'do=edit&id='.$v['ad_id']);?>" class="edit-one">修改</a>
                                <a href="<?php echo U('Admin/Config/Pic', 'do=del&id='.$v['ad_id']);?>" class="delete-one">删除</a>
                            </td>
                        </tr><?php endforeach; endif; else: echo "" ;endif; endif; ?>

            </table>
        </form>
    </div>
    <div id="page-list" style="text-align: center"><?php echo ($show_page); ?></div>
</div>

</body>
</html>